package xyz.msj.hrm.mapper;

import org.apache.ibatis.annotations.Param;
import xyz.msj.hrm.domain.Tenant;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.Date;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mushengjie
 * @since 2020-09-10
 */
public interface TenantMapper extends BaseMapper<Tenant> {
    /**
     * 保存公司和套餐类型中间表
     * @param mealId 套餐id
     * @param id  tenantId 公司id
     * @param addDays 过期时间
     * @param unpaid 未支付
     */
    void insertMealWithTenant(@Param("mealId") int mealId,@Param("id") Long id,
                              @Param("addDays") Date addDays,@Param("unpaid") int unpaid);
}
